/* $Id: BaseDelegateImpl.java 
 * Copyright (C) 2011, TRAKHEES
 *  
 * Revision History
 *
 * Date  			Author 		    	Remarks
 * ---------------------------------------------------------------------------------
 *
 */
package ae.pcfc.etks.online.common.delegate.provider;

import org.dozer.DozerBeanMapper;

import ae.pcfc.etks.online.common.service.ServiceLocator;

public abstract class BaseDelegateImpl {
    	/*
	 * Here we coordinate between the Facade service which handles DB entities
	 * and the WF both will be looked up with service locator normally we will
	 * have 1-1 relationship between the delegate and the facade and 1-1
	 * relationship between the delegate and the WF service which means for
	 * CompanyRegistrationDelegate there will be ClientRegistrationFacade &
	 * CompanyRegistrationWF validations that related to DB vs WF are maintained
	 * here ie user cannot issue a new request while he already have a request
	 * in the wf Exception are translated in to business exception
	 */
	protected transient ServiceLocator serviceLocator;

	protected transient DozerBeanMapper mapper;

	/**
	 * @return the serviceLocator
	 */
	/**
	 * getServiceLocator
	 * 
	 * @return
	 * ServiceLocator
	 */
	public ServiceLocator getServiceLocator() {
		return serviceLocator;
	}

	/**
	 * @param serviceLocator
	 *            the serviceLocator to set
	 */
	/**
	 * setServiceLocator
	 * 
	 * @param serviceLocator
	 * void
	 */
	public void setServiceLocator(ServiceLocator serviceLocator) {
		this.serviceLocator = serviceLocator;
	}

	/**
	 * @return the mapper
	 */
	/**
	 * getMapper
	 * 
	 * @return
	 * DozerBeanMapper
	 */
	public DozerBeanMapper getMapper() {
		return mapper;
	}

	/**
	 * @param mapper
	 *            the mapper to set
	 */
	/**
	 * setMapper
	 * 
	 * @param mapper
	 * void
	 */
	public void setMapper(DozerBeanMapper mapper) {
		this.mapper = mapper;
	}

}
